<template>
  <div id="map">
    <div class="swiper-container" id="comswiper">
      <div class="swiper-wrapper">
        <div class="swiper-slide">
          <img src="../assets/images/banner.png" alt />
        </div>
        <div class="swiper-slide">
          <img src="../assets/images/banner.png" alt />
        </div>
        <div class="swiper-slide">
          <img src="../assets/images/banner.png" alt />
        </div>
      </div>
      <!-- 如果需要分页器 -->
      <div class="swiper-pagination"></div>
    </div>
    <div class="swiperF">
      <img src="../assets/images/banner-1.png" alt />
      <img src="../assets/images/banner-2.png" alt />
      <img src="../assets/images/banner-3.png" alt />
      <img src="../assets/images/banner-4.png" alt />
    </div>
  </div>
</template>
<script>
import Swiper from "swiper";
export default {
  mounted() {
   new Swiper("#comswiper", {
      loop: true,
      autoplay: true,
      delay: 3000,
      direction: "horizontal",
      // 如果需要分页器
      pagination: {
        el: ".swiper-pagination",
        type: "bullets"
        //type: 'fraction',
        //type : 'progressbar',
        //type : 'custom',
      }
    });
  }
};
</script>
<style scoped>
#map,
.swiper-container,
.swiper-slide {
  width: 100%;
}
.swiper-slide img {
  display: inline-block;
  width: 100%;
  height: 300px;
}
.swiperF {
  width: 80%;
  margin: auto;
  display: flex;
  justify-content: space-between;
}
.swiperF img {
  width: 23%;
}
</style>